import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

Vue.config.productionTip = false

import '@/assets/styles/index.scss' //加载样式

import 'lib-flexible' //加载淘宝适配 

//加载全部组件

import '@/components' //引入全局组件

//vant
import Vant from 'vant'
Vue.use(Vant)
import 'vant/lib/index.css'


import { axios, baseURL } from "@/api/http"
Vue.prototype.$axios = axios; //加载axios
Vue.prototype.$host = baseURL; //加载baseURL


import '@/utils/golbal' //时间格式化

import { ajax } from "@/api/index"
Vue.prototype.$ajax = ajax; //加载ajax

// import VueTouch from 'vue-touch'
// Vue.use(VueTouch, { name: 'v-touch' }) //引入touch事件


new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')